﻿using System;
using System.Web.Security;

namespace GiveAQuiz.Web.Messenger
{
  /// <summary>
  /// This interface defines the methods used to send messages about 
  /// account information to users of this site.
  /// </summary>
  public interface IAccountMessenger
  {
    /// <summary>
    /// Send the password reset message to a given user.
    /// </summary>
    /// <param name="user">The user to which the message will be sent.</param>
    /// <param name="newPassword">The newly created password</param>
    void SendPasswordResetMessage(MembershipUser user, string newPassword);
    
    /// <summary>
    /// Send the registration verification message to a given user.
    /// </summary>
    /// <param name="user">The user to which the message will be sent.</param>
    void SendRegistrationVerificationMessage(MembershipUser user);
  }
}
